/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package models;

import java.util.ArrayList;


/**
 *
 * @author Dan
 */
public class Rent {

    private int personId;
    private String rentalDate;
    private int rentalPeriod;
    private ArrayList<StorageItem> rentItem = new ArrayList<StorageItem>();

    public Rent(int personId, String rentalDate, int rentalPeriod, ArrayList si) {
        this.personId = personId;
        this.rentalDate = rentalDate;
        this.rentalPeriod = rentalPeriod;
        this.rentItem = si;
    }

    public int getPersonId() {
        return personId;
    }

    public void setPersonId(int personId) {
        this.personId = personId;
    }

    public String getRentalDate() {
        return rentalDate;
    }

    public void setRentalDate(String rentalDate) {
        this.rentalDate = rentalDate;
    }

    public int getRentalPeriod() {
        return rentalPeriod;
    }

    public void setRentalPeriod(int rentalPeriod) {
        this.rentalPeriod = rentalPeriod;
    }

    public ArrayList<StorageItem> getRentItem() {
        return rentItem;
    }

    public void addRentItem(StorageItem item) {
        rentItem.add(item);
    }
}